<?php
ob_start();
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
include '../operations/connection.php';

$idlabel = $_REQUEST['idlabel'];
$namlabel = $_REQUEST['vlNameLabel1'];

if(isset($_REQUEST['editlabel'])){
	$sql="update list_lable set list_lable.LableName='".$namlabel."' where list_lable.IDLable=".$idlabel."";
		mysql_query($sql);
}else if (isset($_REQUEST['deletelabel'])){
	$sql="DELETE from list_lable where list_lable.IDLable=".$idlabel."";
		mysql_query($sql);
}

mysql_close($connection);


if(isset($_REQUEST['editlabel']) || isset($_REQUEST['deletelabel'])){
	header("Location: ../menu.php");
}
ob_flush();
?>